package com.zmn.plat.services.impl.product;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.product.ServSubsidiaryGroupItem;
import com.zmn.plat.model.entity.product.ServSubsidiaryGroupItemQuery;
import com.zmn.plat.persistence.interfaces.product.ServSubsidiaryGroupItemDAO;
import com.zmn.plat.services.interfaces.product.ServSubsidiaryGroupItemService;

/**
 * 描述:ServSubsidiaryGroupItemServiceImpl
 *
 * @author tanghongjun
 * @since: 2018/10/16 17:56
 */
@Service
public class ServSubsidiaryGroupItemServiceImpl implements ServSubsidiaryGroupItemService {

    @Resource
    private ServSubsidiaryGroupItemDAO servSubsidiaryGroupItemDAO;

    @Override
    public ServSubsidiaryGroupItem findByKey(Integer groupId) {
        return servSubsidiaryGroupItemDAO.findByKey(groupId);
    }

    @Override
    public Integer findKeyForMax() {
        return servSubsidiaryGroupItemDAO.findKeyForMax();
    }

    @Override
    public List<ServSubsidiaryGroupItem> listPageByQuery(ServSubsidiaryGroupItemQuery query) {
        return servSubsidiaryGroupItemDAO.listPageByQuery(query);
    }

    @Override
    public List<ServSubsidiaryGroupItem> listByQuery(ServSubsidiaryGroupItemQuery query) {
        return servSubsidiaryGroupItemDAO.listByQuery(query);
    }

    @Override
    public List<ServSubsidiaryGroupItem> listAll() {
        return servSubsidiaryGroupItemDAO.listAll();
    }

    @Override
    public Integer countByQuery(ServSubsidiaryGroupItemQuery query) {
        return servSubsidiaryGroupItemDAO.countByQuery(query);
    }

    @Override
    public Integer updateByKey(ServSubsidiaryGroupItem servSubsidiaryGroupItem) {
        return servSubsidiaryGroupItemDAO.updateByKey(servSubsidiaryGroupItem);
    }

    @Override
    public Integer insert(ServSubsidiaryGroupItem servSubsidiaryGroupItem) {
        return servSubsidiaryGroupItemDAO.insert(servSubsidiaryGroupItem);
    }

    @Override
    public Integer deleteByKey(Integer groupId) {
        return servSubsidiaryGroupItemDAO.deleteByKey(groupId);
    }
}